From 7e576b501942cb0657560ecc5c8d78e3af5c40ba Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Mon, 2 Sep 2013 15:24:11 +0400 Subject: [PATCH] * xterm.c (handle_one_xevent): Use event.xunmap and not event.xmap when handling UnmapNotify event. --- src/ChangeLog | 2 ++ src/xterm.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3528462c8bf..390460a9e7c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -8,6 +8,8 @@ Ifdef away legacy code. (XTmouse_position, x_scroll_bar_report_motion): Use x_last_mouse_movement_time. + (handle_one_xevent): Use event.xunmap and not event.xmap when handling + UnmapNotify event. 2013-09-02 Dmitry Antipov diff --git a/src/xterm.c b/src/xterm.c index 1870aae5a6d..2def3ef11d5 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -6183,7 +6183,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, XEvent *eventptr, case UnmapNotify: /* Redo the mouse-highlight after the tooltip has gone. */ - if (event.xmap.window == tip_window) + if (event.xunmap.window == tip_window) { tip_window = 0; redo_mouse_highlight (); -- 2.30.2